//
//  TTMinePosterViewCell.m
//  TaoTuo
//
//  Created by admin on 2020/1/7.
//  Copyright © 2020 admin. All rights reserved.
//

#import "TTMinePosterViewCell.h"
#import <UIImageView+WebCache.h>

@interface TTMinePosterViewCell ()

@property (nonatomic, strong) UIImageView *imageView;

@end

@implementation TTMinePosterViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.backgroundColor = [UIColor whiteColor];
        _imageView = [[UIImageView alloc] initWithFrame:self.bounds];
        _imageView.contentMode = UIViewContentModeScaleAspectFill;
//        _imageView.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:_imageView];
        
    }
    return self;
}

- (void)setUrlString:(NSString *)urlString
{
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:urlString] placeholderImage:[UIImage imageNamed:@"sq_placeholder_img"] options:SDWebImageRetryFailed];
    
}

@end
